import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/search_game_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class SearchGameListEntity {
	late int code;
	late String msg;
	late List<SearchGameListData> data;

	SearchGameListEntity();

	factory SearchGameListEntity.fromJson(Map<String, dynamic> json) => $SearchGameListEntityFromJson(json);

	Map<String, dynamic> toJson() => $SearchGameListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class SearchGameListData {
	late int id;
	@JSONField(name: "is_self")
	late int isSelf;
	@JSONField(name: "img_url")
	late String imgUrl;
	@JSONField(name: "add_time")
	late String addTime;
	@JSONField(name: "baopei")
	late String baopei;
	late String title;
	@JSONField(name: "category_text")
	late String categoryText;
	@JSONField(name: "sell_price")
	late String sellPrice;
	late int totalcount;
	@JSONField(name: "is_msg")
	 String isMsg = '';
	@JSONField(name: "is_deductible")
	String isDeductible = '';

	@JSONField(name: "is_bystages")
	 String isBystages = '';
	@JSONField(name: "update_time")
	late String updateTime;

	SearchGameListData();

	factory SearchGameListData.fromJson(Map<String, dynamic> json) => $SearchGameListDataFromJson(json);

	Map<String, dynamic> toJson() => $SearchGameListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}